package com.catersystem.zmy.catersystem.bean;

import android.text.TextUtils;

/**
 * Created by Administrator on 2017/11/22 0022.
 */

public class DishTypeBean {

    /**
     * id : 422
     * masterno : 外卖
     * item_name : 瓶装喜力
     * spunit : 瓶
     * amount : 1.00
     * taste :
     * status : 0
     * opertime : 2017-11-22 16:44:10
     */

    private int id;
    private String masterno;
    private String item_name;
    private String spunit;
    private String amount;
    private String taste;
    private int status;
    private long opertime;

    private String time;

    public String getTime() {
        if (TextUtils.isEmpty(time)) {
            return "";
        }
        return "已等" + time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getId() {
        return id;
    }

    public String getMasterno() {
        return masterno;
    }

    public String getItem_name() {
        return item_name;
    }

    public String getSpunit() {
        return spunit;
    }

    public String getAmount() {
        if (Float.parseFloat(amount) % 1 == 0) {
            return ((int) Float.parseFloat(amount)) + "";
        }
        return amount;
    }

    public String getTaste() {
        return taste;
    }

    public int getStatus() {
        return status;
    }

    public long getOpertime() {
        return opertime;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "DishTypeBean{" +
                "id=" + id +
                ", masterno='" + masterno + '\'' +
                ", item_name='" + item_name + '\'' +
                ", spunit='" + spunit + '\'' +
                ", amount='" + amount + '\'' +
                ", taste='" + taste + '\'' +
                ", status=" + status +
                ", opertime='" + opertime + '\'' +
                '}';
    }
}
